This function attaches to the grid using the gridname parameter as the identifier.
Result = EOS_GD_ATTACH(fid, gridname)
Returns the grid handle (gridID) if successful and FAIL(–1) otherwise.
Grid file id (long) returned by EOS_GD_OPEN.
Name of grid (string) to be attached.
None
In this example, we attach to the previously created grid, “ExampleGrid”, within the HDF file, GridFile.hdf, referred to by the handle, fid:
gridID = EOS_GD_ATTACH(fid, "ExampleGrid")
The grid can then be referenced by subsequent routines using the handle, gridID.
5.2 |
Introduced |